home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / marchzuma.swf / scripts / DefineButton2_29 / BUTTONCONDACTION on(release).as
Text File  |  2007-10-01  |  402b  |  23 lines

  1. on(release){
  2.    switch(_root.vlm)
  3.    {
  4.       case 1:
  5.          oto.setVolume(30);
  6.          break;
  7.       case 2:
  8.          oto.setVolume(8);
  9.          break;
  10.       case 3:
  11.          oto.setVolume(0);
  12.          break;
  13.       case 4:
  14.          oto.setVolume(50);
  15.    }
  16.    _root.vlm = _root.vlm + 1;
  17.    if(_root.vlm > 4)
  18.    {
  19.       _root.vlm = 1;
  20.    }
  21.    _root.vlal.gotoAndStop(_root.vlm);
  22. }
  23.